#!/usr/bin/python
# coding=utf-8
#from tk.redisoper import CRedis
from datasyn import Esoper

import simplejson

#shiji211同步
field_desc_ti='tjiexi|string,tquestion|string,id|string,tanswer|string,channel|string,grade|string,paperarea|string,papertype|string,paperyear|string,blpaper|string'
field_desc_paper='id|string,papername|string,channel|string,grade|string,paperarea|string,papertype|string,paperyear|string'
#shiji_paper同步
esoper= Esoper(field_desc=field_desc_paper,mgtable='shiji_paper',index='shiji21_index',doctype='shiji_paper')
esoper.load_fromMongodb();


esoper= Esoper(field_desc=field_desc_ti,mgtable='shiji211',index='shiji21_index',doctype='shiji_ti')
esoper.load_fromMongodb();


